<!DOCTYPE html>

<html>
<head>

    <link href="css_anmi_load.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="../cordova.js"></script>
    <script type="text/javascript" src="index.js"></script>
    <script type="text/javascript" src="accessAuth_ajax.js"></script>
    <script type="text/javascript" src="../butterfly/vendor/jquery/jquery.js"></script>

    <meta charset="utf-8"/>
    <meta name="format-detection" content="telephone=no"/>
    <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
    <meta name="viewport"
          content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi"/>
    <meta name="msapplication-tap-highlight" content="no"/>
    <title>Hello World</title>
</head>
<body>
<div class="app">
    <div class="spinner">
        <!--<div class="spinner-container container1">-->
            <!--<div class="circle1"></div>-->
            <!--<div class="circle2"></div>-->
            <!--<div class="circle3"></div>-->
            <!--<div class="circle4"></div>-->
        <!--</div>-->
        <!--<div class="spinner-container container2">-->
            <!--<div class="circle1"></div>-->
            <!--<div class="circle2"></div>-->
            <!--<div class="circle3"></div>-->
            <!--<div class="circle4"></div>-->
        <!--</div>-->
        <!--<div class="spinner-container container3">-->
            <!--<div class="circle1"></div>-->
            <!--<div class="circle2"></div>-->
            <!--<div class="circle3"></div>-->
            <!--<div class="circle4"></div>-->
        <!--</div>-->
    </div>
    <p>正在检测授权状态...</p>
    <!--<img src="img/splash.png">-->
</div>

<script type="text/javascript">
    app.initialize();

    function succ() {
        setTimeout(function () {
            accessAuth.allOk();
        }, 1000);
    }

    function fail(errMsg) {
        setTimeout(function () {
            accessAuth.requireLogin();
        }, 1000);
    }

    document.addEventListener("deviceready", function () {
        accessAuth.regAndCheckin(null, succ, fail, true);
    });
</script>

</body>
</html>
